package com.pine.dcts.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotBlank;

@Setter
@Getter
@TableName("dcts_role")
public class Role extends BaseEntity{

    @TableId(type = IdType.AUTO)
    private Integer id;
    /**
     * 角色名称
     */
    @NotBlank(message = "角色名称不能为空")
    private String name;
    /**
     * 描述
     */
    private String description;
    /**
     * 编码
     */
    @NotBlank(message = "角色编码不能为空")
    private String code;
    /**
     *  状态
     */
    private Integer status;
}
